#include<iostream>
#include<fstream>
#include<limits>
int main(int argc,char *argv[])
{
    using namespace std;
   
    

	const double eps = std::numeric_limits<double>::epsilon();
	ifstream file1; file1.open("result.txt");
	ifstream file2; file2.open("out.txt");
	if(file1.is_open()==false)
	{std::cout<< "file 1 not opened"<<std::endl;
	    return 0;}
	if(file2.is_open()==false)
	{ std::cout<< "file 2 not opened"<<std::endl;
	    return 0;}
        

	while(!file1.eof()&&!file2.eof())
	{
	    int gdb=file1.tellg();
	    int temp1 , temp2;
	    file1>>temp1;
	    file2>>temp2;
	    if(temp1!=temp2)
	    {
		std::cout<< "not pass!"<<std::endl;
		 return 0;
	    }
	    file1.peek();
	    file2.peek();
	    std::cout<< "processing..."<<gdb<<std::endl;
	}
	if(!file1.eof()||!file2.eof())
	{std::cout<< "not pass!"<<std::endl;
        return 0;
	}
	std::cout<<"pass!"<<std::endl;
	return 0;
    
}
